'use strict';

module.exports = app => {
  const { router, controller, middleware } = app;
  const jwt = middleware.jwt(app.config.jwt);

  router.post('/admin/login', controller.auth.login);
  router.get('/admin/getUserInfo', jwt, controller.auth.getUserInfo);
  router.get('/admin/getUserList', jwt, controller.auth.getUserList);
};
